package com.example.bigdata.controller;

import com.example.bigdata.mapper.SysUserMapper;
import com.example.bigdata.model.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author jie
 * @date 2021/4/27 -14:18
 */
@RestController
public class SysUserController {

    @Autowired
    private SysUserMapper sysUserMapper;

    @GetMapping("/test")
    public String test(){
        return "jie";
    }

    @GetMapping("/test2")
    public List<SysUser> test2(){
        List<SysUser> sysUserList = sysUserMapper.selectAll();
        return sysUserList;
    }
}
